Use format() for shared subplot slice titles#652
Open
cvanelteren wants to merge 6 commits intomainfrom
Open
Conversation
Collaborator
Author
|
Need to fix a small bbox alignment but other than that it works. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Collaborator
|
The fix messed up the spaces between rows of axes, when using shared titles with subset of axes. |
Collaborator
Author
|
@gepcel do you have an example? |
Collaborator
Author
import ultraplot as uplt
# Test whether ignored for bar plots
fig, ax = uplt.subplots(ncols=2, nrows=2)
ax[0, :].format(title="True")
ax[1, :].format(title="True")
uplt.show(block=1Looks good I think |
Collaborator
Author
Collaborator
Collaborator
Author
|
Thanks! Funnily enough the code works fine when index to the first row. Will investigate. |
Collaborator
Author
|
Found the issue; it was feeding back into tight layout causing the figure to act as if the text was still there, overinflating the hspace. |
Collaborator
Author
|
Good catch @gepcel |
gepcel
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


We should make more use of the slicing feature to format a subset and assume the user aims to share the titles. This is a move in making the
formatfunction more intuitive.Closes #650 #651